package com.contactmanager;
import java.io.Serializable;

@SuppressWarnings("serial")

public class Contact implements Serializable {
	/*
	 * Private members
	 */
	private long id;
	private String name;
	private String address;
	private String cell;
	private String alt;
	private String email;
	private String comments;
	private int group;
	
	/*
	 * Generated getters and setters.
	 */
	
	public Contact(){
		id = 0;
		name = "";
		address = "";
		cell = "";
		alt = "";
		email = "";
		comments = "";
		group = 0;
	}
	
	public Contact(long id,String name,String address, String cell, String alt, String email, String comments, int group){
		id = this.id;
		name = this.name;
		address = this.address;
		cell = this.cell;
		alt = this.alt;
		email = this.email;
		comments = this.comments;
		group = this.group;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCell() {
		return cell;
	}
	public void setCell(String cell) {
		this.cell = cell;
	}
	public String getAlt() {
		return alt;
	}
	public void setAlt(String alt) {
		this.alt = alt;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getComments() {
		return comments;
	}
	public void setComments(String comments) {
		this.comments = comments;
	}
	public int getGroup(){
		return group;
	}
	
	public void setGroup(int group) {
		this.group = group;
	}
	/*
	 * ToString, used by adapters
	 */
	@Override
	public String toString(){
		return name;
	}

	public void Contact(long id2, String name2, String address2, String cell2,
			String alt2, String email2, String comments2, int group2) {
		// TODO Auto-generated method stub
		
	}
}
